from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
import logging

logger = logging.getLogger(__name__)
# Create your models here.
class Member(models.Model):
    user = models.ForeignKey(User)
    phoneNumber = models.IntegerField()
    def __unicode__(self):
        return '%s' % self.user
    
class Customer(Member):
    type = models.CharField(max_length = 300)
    
    class Meta:
        verbose_name = _("customer")
        verbose_name_plural = _("customers")
    
class Teacher(Member):
    type = models.CharField(max_length = 300)
    class Meta:
        verbose_name = _("teacher")
        verbose_name_plural = _("teachers")
    
    
